package cate.common.table.pvp.crossboss;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass("领主配置")
public class CrossBossMonsterSheet extends ESheet<CrossBossMonsterRow> {
    @Override
    public String getSheetName() {
        return "领主配置";
    }


    public CrossBossMonsterRow findEasyRow(int bossTid) {
        CrossBossMonsterRow curRow = this.get(bossTid);
        if (curRow == null) {
            return null;
        }
        for (CrossBossMonsterRow row : this.getList()) {
            if (row.difficulty == curRow.difficulty - 1 && row.protoId == curRow.protoId) {
                return row;
            }
        }
        return null;
    }
}
